package com.qinggeng.project.system.service.impl;

import com.qinggeng.project.system.domain.UserMessageIcon;
import com.qinggeng.project.system.mapper.UserMessageIconMapper;
import com.qinggeng.project.system.service.UserMessageIconService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 吴鹏飞
 * @date 2020/9/8
 */
@Service
public class UserMessageIconServiceImpl implements UserMessageIconService {

    @Autowired
    private UserMessageIconMapper userMessageIconMapper;
    /**
     * 根据状态值查询图标
     * @param statusCode
     * @return
     */
    @Override
    public UserMessageIcon selectIconByStatusCode(String statusCode) {
        return userMessageIconMapper.selectIconByStatusCode(statusCode);
    }

    /**
     * 查询所有交易物流状态图标
     * @return
     */
    @Override
    public List<UserMessageIcon> selectIconList() {
        return userMessageIconMapper.selectIconList();
    }
}
